package com.example.vote.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * 投票系统-投票记录表-6
 * </p>
 *
 * @author 廖老师
 * @since 2023-12-04
 */
@TableName("tp_record")
public class TpRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号, 自增列
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 题目编号: 关联 tp_vote.id
     */
    private Integer vid;

    /**
     * 选项编号: 关联 tp_items.id
     */
    private Integer iid;

    /**
     * 用户表编号: 关联 tp_user.id
     */
    private Integer usid;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getVid() {
        return vid;
    }

    public void setVid(Integer vid) {
        this.vid = vid;
    }

    public Integer getIid() {
        return iid;
    }

    public void setIid(Integer iid) {
        this.iid = iid;
    }

    public Integer getUsid() {
        return usid;
    }

    public void setUsid(Integer usid) {
        this.usid = usid;
    }

    @Override
    public String toString() {
        return "TpRecord{" +
        "id=" + id +
        ", vid=" + vid +
        ", iid=" + iid +
        ", usid=" + usid +
        "}";
    }
}
